﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp8
{
    class Student:Person
    {
        public int id;
        public String name;
        public char sex;
        public long cardid;
        public long tel;
        public string major;
        public int  grade;

        public Student(int id, string name, string sex, int cardid, int tel, string major, int grade)
           : base()
        {
            this.major = major;
            this.grade = grade;
        }
        public void hello()
        {
            Console.WriteLine("{0},{1},{2},{3},{4},{5},{6}", id, name, sex, cardid, tel, major, grade);
        }

    }
}
